//
//  Market_Main_List_ViewController.m
//  SSKJ
//
//  Created by 赵亚明 on 2018/12/11.
//  Copyright © 2018 刘小雨. All rights reserved.
//

#import "Market_Main_List_ViewController.h"

@interface Market_Main_List_ViewController ()<UITableViewDelegate,UITableViewDataSource>

@property (nonatomic,strong) UITableView *tableView;

@property (nonatomic,strong) UIScrollView * scrollView;

@property(assign, nonatomic) NSInteger index;



@end

@implementation Market_Main_List_ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = kMainColor;
    
    [self tableView];
}
#pragma mark  - 页面即将显示
- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    self.navigationController.navigationBar.hidden=YES;

}
#pragma mark  - 页面即将消失
- (void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated];
    self.navigationController.navigationBar.hidden=NO;
}

- (void)viewDidAppear:(BOOL)animated{
    [super viewDidAppear:animated];
}

#pragma mark --- UITableViewDelegate --

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 0;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return .1f;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    return nil;
}

#pragma mark -- 懒加载 --
#pragma mark -- 创建表 --
- (UITableView *)tableView{
    
    if (_tableView == nil)
    {
        _tableView = [[UITableView alloc]initWithFrame:CGRectZero style:UITableViewStylePlain];
        
        _tableView.delegate = self;
        
        _tableView.dataSource = self;
        
        _tableView.backgroundColor = kMainColor;
        
        _tableView.tableFooterView = [UIView new];
        
        [self.view addSubview:_tableView];
        
        [_tableView mas_makeConstraints:^(MASConstraintMaker *make) {
            
            make.top.equalTo(@0);
            
            make.left.equalTo(@0);
            
            make.width.equalTo(@(ScreenWidth));
            
            make.height.equalTo(@(ScreenHeight));
            
        }];
        
        _tableView.mj_header = [MJRefreshHeader headerWithRefreshingBlock:^{
            
        }];
    }
    return _tableView;
}

#pragma mark -- UIScrollView ---



@end
